const mongoose = require("mongoose")

// mongoose.connect("mongodb://root:cjp123456@47.99.72.185:27017/erp?authSource=admin", (err) => {
    mongoose.connect("mongodb://43.138.68.252:27017/erp", (err) => {
    if (err) {
        return console.log('数据库连接失败',err)
    }
    console.log('数据库连接成功,操作的数据库是erp,端口号:7777')
})

module.exports = {mongoose}